package com.sky.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;

@Mapper
public interface WorkSpaceMapper {

    @Select("select count(id) from setmeal where status = #{enable}")
    Integer overviewSetmeals(Integer enable);

    @Select("select count(id) from dish where status = #{enable}")
    Integer overviewDishes(Integer enable);


    Integer overviewOrders(LocalDateTime begin, LocalDateTime end, Integer status);
}
